<script>
                shippings[<?php echo $this->_var['key']; ?>] = <?php echo $this->_var['goods_info']['shipping_data']['shippings']; ?>;
                goods_amount[<?php echo $this->_var['key']; ?>] = <?php echo $this->_var['goods_info']['amount']; ?>;
                goods_quantity[<?php echo $this->_var['key']; ?>] = <?php echo $this->_var['goods_info']['quantity']; ?>;
                total_integral_max_exchange[<?php echo $this->_var['key']; ?>] = <?php echo $this->_var['goods_info']['total_integral_max_exchange']; ?>;
$(function(){
                    //select first
                    $($('#select-shipping_<?php echo $this->_var['key']; ?> ul[shipping_id]')[0]).click();
                 
});

</script>
<div id="select-shipping_<?php echo $this->_var['key']; ?>" class="mt10">
   <div class="title fs14 strong mb10">选择配送方式</div>
   <div class="content f66">
       <?php if ($this->_var['goods_info']['is_free_fee']): ?>
	<ul class="shipping_item">
		<li>
        	<input class="mb5" type="radio" name="is_free_fee_<?php echo $this->_var['key']; ?>" checked="checked" value="1" />
			<?php echo htmlspecialchars($this->_var['goods_info']['shipping_data']['shipping_method']['shipping_name']); ?>
			<input type="hidden" name="is_free_fee_<?php echo $this->_var['key']; ?>" value="1" />
			配送费用：<span class="money">&yen; 0.00</span><span class="ml5">(<?php echo htmlspecialchars($this->_var['goods_info']['free_fee_name']); ?>)</span>
		</li>
	</ul>
	<?php else: ?> 
      <?php $_from = $this->_var['goods_info']['shipping_data']['shipping_methods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'shipping_method');$this->_foreach['shipping_select'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['shipping_select']['total'] > 0):
    foreach ($_from AS $this->_var['shipping_method']):
        $this->_foreach['shipping_select']['iteration']++;
?>
      <ul class="shipping_item" shipping_id="<?php echo $this->_var['shipping_method']['shipping_id']; ?>" store_id="<?php echo $this->_var['key']; ?>">
       <li>
	      <input class="mb5" type="radio" name="shipping_id_<?php echo $this->_var['key']; ?>" value="<?php echo $this->_var['shipping_method']['shipping_id']; ?>" />  
	      <?php echo htmlspecialchars($this->_var['shipping_method']['shipping_name']); ?>
              <b class="shipping_info" style="display: none">配送费用：<span class="money" ectype="shipping_fee">&yen; 0.00</span></b>
		  
	      <?php echo htmlspecialchars($this->_var['shipping_method']['shipping_desc']); ?>
	   </li>
       </ul>
       <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
       <?php endif; ?>
   </div> 
</div>





